package com.lyj.mode.principle.single;

/**
 * 交通工具类
 * @author:liyajie
 * @createTime:2022/1/28 14:43
 * @version:1.0
 */
public class Transportation {

    /**
     * 汽车
     * @author: liyajie
     * @date: 2022/1/28 14:45
     * @param car
     * @return void
     * @exception:
     * @update:
     * @updatePerson:
     **/
    public void car(String car) {
        System.out.println(car + "在公路上跑");
    }

    /**
     * 火车
     * @author: liyajie
     * @date: 2022/1/28 14:45
     * @param train
     * @return void
     * @exception:
     * @update:
     * @updatePerson:
     **/
    public void train(String train) {
        System.out.println(train + "在铁轨上跑");
    }

    /**
     * 飞机
     * @author: liyajie
     * @date: 2022/1/28 14:45
     * @param airplane
     * @return void
     * @exception:
     * @update:
     * @updatePerson:
     **/
    public void airplane(String airplane) {
        System.out.println(airplane + "在天上飞");
    }
}
